//
//  STCommon.h
//  赛拓
//
//  Created by 王磊 on 7/28/16.
//  Copyright © 2016 立金所. All rights reserved.
//


/***********************************
 **     设备名
 ***********************************/
#define deviceName [UIDevice currentDevice].name
/***********************************
 **   操作系统
 ***********************************/
#define deviceOS [UIDevice currentDevice].systemName
/***********************************
 **   系统版本
 ***********************************/
#define deviceVersion [UIDevice currentDevice].systemVersion
/***********************************
 **  设备id
 ***********************************/
#define deviceId [UIDevice currentDevice].identifierForVendor.UUIDString
/***********************************
 **  设备机型
 ***********************************/
#define deviceModels [UIDevice currentDevice].model
/***********************************
 ** 像素
 ***********************************/
//#define pixel NSStringFromCGSize(CGSizeMake(kSCREEN_WIDTH * BDSCREEN.scale, kSCREEN_HEIGHT *BDSCREEN.scale))

/***********************************
 **  分辨率
 ***********************************/
#define deviceResolution NSStringFromCGSize(ST_SCREEN_BOUNDS.size)

#define deviceVersionBool [[UIDevice currentDevice].systemVersion floatValue] <= 9.0f


#define MAS_SHORTHAND

#define MAS_SHORTHAND_GLOBALS

#define STNotiCenter [NSNotificationCenter defaultCenter]

#define STUD [NSUserDefaults standardUserDefaults]


#define ST_TOPLAYOUTGUIDE 64

#define ST_BOTTONLAYOUTGUIDE 48

#define ST_SCREEN_WIDTH CGRectGetWidth([UIScreen mainScreen].bounds)

#define ST_SCREEN_HEIGHT CGRectGetHeight([UIScreen mainScreen].bounds)

#define ST_SCREEN_BOUNDS  [UIScreen mainScreen].bounds

#define ST_RATE ST_SCREEN_HEIGHT / 1330.0f

#define ST_SPECIAL_RATE ST_SCREEN_HEIGHT / 2000.0f

#define WeakObj(o) try{}@finally{} __weak typeof(o) o##Weak = o;

#define StrongObj(o) autoreleasepool{} __strong typeof(o) o = o##Weak;



